﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace CopySniffer.Search
{
    [Serializable]
    [DataContract(Namespace="")]
    public struct PairedSearchResults
    {
        public PairedSearchResults(SearchInfo info, IEnumerable<SearchResult> results)
            : this()
        {
            SearchText = info.ToString();
            Results = results;
        }

        [DataMember]
        public string SearchText { get; private set; }

        [DataMember]
        public IEnumerable<SearchResult> Results { get; private set; }
    }
}
